package com.sld.concrete.monitor.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.sld.concrete.monitor.service.IConcreteMonitorService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 描述:
 *
 * @Author wgw
 * @create 2022-03-19 16:21
 */
@Controller
public class MonitorController {
    @Resource
    IConcreteMonitorService concreteMonitorService;

    @GetMapping("concrete/monitor")
    public String monitorIndex() {
        return "monitor";
    }




    @RequestMapping("concrete/monitor/query")
    @ResponseBody
    public AjaxResult queryIndexData(){
        return AjaxResult.success(concreteMonitorService.queryIndexData());
    }
}
